<form id="sForm">
	<input type="hidden" name="frm" value="{$_act.frm}" />
	<input type="hidden" name="mdl" value="{$_act.mdl}" />
	<input type="hidden" name="do" value="{$_act.do}" />

	<input type="hidden" name="posid" id="posid" value="{$posid}" />
	<table border="0" align="center" cellpadding="0" cellspacing="1" class="table_search">
		<tbody>
			<tr>
				<th>{$l.advert}{$l.pos}：</th>
				<td><select name="posid" id="posid" class="select">
						{$posid_options}
					</select></td>
				<th>{$l.keyword}：</th>
				<td><input type="text" name="keyword" value="{$get.keyword}" class="input" style="width:160px;" /></td>
				<td class="w100p"></td>
				<td><input type="submit" name="btnSearch" value="{$l.search}" class="button" /></td>
				<td><input type="submit" name="btnExport" value="导出" class="button" /></td>
			</tr>
		</tbody>
	</table>
	<br />
	<div class="form_data_cut">
		<div class="right">
			<!-- 操作链接 START -->
			<a href="./m.php?frm=pics&mdl=advert&do=edit" target="eBody">添加</a>
			<!-- 操作链接 END -->
			<div class="clear"></div>
		</div>
		<!-- 排序字段 START -->
		{include file="_major_sort.lbi"}
		<!-- 排序字段 END -->
		<div class="clear"></div>
	</div>
</form>
<div class="space10"><!-- 间隔 --></div>
<form action="./m.php?frm=action&mdl=index" name="lForm" id="lForm" method="post" target="eBody">
	<input type="hidden" name="formAction" value="" />
	<input type="hidden" name="goback" value="frlist" />
	<input type="submit" id="btnSubmit" class="hide" />
	<table align="center" class="data_form">
		<caption>
		{$_page.caption}
		</caption>
		<thead>
			<tr>
				<th style="width:22px;"><input type="checkbox" title="{$l.selall}/{$l.selnone}" class="poshytip" /></th>
				<th style="width:200px;">{$l.album}</th>
				<th>{$l.title}</th>
				<th style="width:120px;">{$l.advert}{$l.pos}</th>
				<th style="width:50px;">URL</th>
				<th style="width:50px;">{$l.memo}</th>
				<th style="width:50px;">{$l.rank}</th>
				<th style="width:40px;"><a href="#" alt="yes" onclick="sel_all(this, 'show');return false;">{$l.show}</a></th>
				<th style="width:70px;">{$l.hits}</th>
				<th style="width:150px;">{$l.time}</th>
				<th style="width:30px;">{$l.operation}</th>
			</tr>
		</thead>
		<tbody>
		
		{foreach from=$list item=row}
		<tr>
			<th><input type="checkbox" name="list[]" value="{$row.id}" /><input type="hidden" name="lst[{$row.id}]" value="{$row.id}" /></th>
			<td><a href="{$_s.up_dir}{$row.path}" title="{$row.title}" class="open_frame"><img src="{$_s.up_dir}thumb/{$row.path}" onload="drawImage(this, 200, 150);" width="200" height="150" /></a></td>
			<td><a href="{$row.href}" class="open_frame">{$row.title}</a></td>
			<td>{$row.pos}</td>
			<td><a href="{$row.url}" title="{$row.url}" class="open_frame">URL</a></td>
			<td>{$row.memo}</td>
			<td><input type="text" name="rank[{$row.id}]" value="{$row.rank}" class="input" style="width:40px;" /></td>
			<td><input type="checkbox" name="show[{$row.id}]" value="1"{if $row.show == 1} checked="checked"{/if} /></td>
			<td>{$row.hits}</td>
			<td>{$row.addtime} <br />
				{$row.updatetime}</td>
			<td>{if $_g._mp_pics_advert_edit}<a href="./m.php?frm=pics&mdl=advert&do=edit&id={$row.id}" target="eBody">{$l.edit}</a>{/if}</td>
		</tr>
		{/foreach}
		</tbody>
		
	</table>

</form>
	<!--  -->
	<table border="0" align="center" cellpadding="0" cellspacing="1" class="data_form">
		<tfoot id="cmd">
			<tr>
				<td><div class="btns"><!--<select class="select"><option></option>-->
							<!--{if $_g._mp_pics_advert_del}-->
							<button name="formAction" value="{$_act.frm}.advert_del" class="button">{$l.del}</button>
							<!--{/if}-->
							<!--{if $_g._mp_pics_advert_rank}-->
							<button name="formAction" value="{$_act.frm}.advert_rank" class="button">{$l._mp_pics_advert_rank}</button>
							<!--{/if}--><!--</select>-->
					</div>
					{include file="./_pagelist.tpl"}</td>
			</tr>
		</tfoot>
	</table>

<div class="space5"><!-- 间隔 --></div>
<div class="data_memo"></div>

<script type="text/javascript" language="JavaScript" charset="utf-8">
<!--
	{literal}
	jQuery(function($){
		
	});
	{/literal}
-->
</script>